<template>
  <div class="hello">
    <el-button @click="login">按钮</el-button>
  </div>
</template>

<script>
import { requestLogin } from "../api/user";
export default {
  name: "HelloWorld",
  props: {
    msg: String
  },
  methods: {
    login() {
      requestLogin({ "name": "zhuqiao" }).then(data => this.$alert(data));
    }
  }
};
</script>

<style scoped>
</style>
